package com.itheima.test5;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author:gy
 * @Date: 2025/08/31 15:00
 * @Description:
 */
public class Dmeo {
    public static void main(String[] args) throws Exception {
        User u1 = new User("小帅", "123456",28);
        //输出流
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day11\\e.txt"));
        bw.write(u1.getName());
        bw.newLine();
        bw.write(u1.getPassWord());
        bw.close();
    }
}
